@(user: securesocial.core.java.SocialUser )
@scripts = {    
	<script type="text/javascript" src="http://swfobject.googlecode.com/svn/trunk/swfobject/swfobject.js"></script>
	<script type="text/javascript">
	//videos
	function loadVideo(playerUrl, autoplay) {
		  swfobject.embedSWF(
		      playerUrl + '&rel=1&border=0&fs=1&autoplay=' +
		      (autoplay?1:0), 'player', '400', '320', '9.0.0', false,
		      false, {allowfullscreen: 'true'});
		}

		function showMyVideos2(data) {
		  var feed = data.feed;
		  var entries = feed.entry || [];
		  var html = ['<ul class="videos">'];
		  for (var i = 0; i < entries.length; i++) {
		    var entry = entries[i];
		    var title = entry.title.$t.substr(0, 20);
		    var thumbnailUrl = entries[i].media$group.media$thumbnail[0].url;
		    var playerUrl = entries[i].media$group.media$content[0].url;
		    html.push('<li onclick="loadVideo(\'', playerUrl, '\', true)">',
		              '<span class="titlec">', title, '...</span><br /><img src="',
		              thumbnailUrl, '" width="130" height="97"/>', '</span></li>');
		  }
		  html.push('</ul><br style="clear: left;"/>');
		  document.getElementById('videos2').innerHTML = html.join('');
		  if (entries.length > 0) {
		    loadVideo(entries[0].media$group.media$content[0].url, false);
		  }
		}
		$("#playContainer").css('padding-left', '40%');
	//end videos
	</script>
	<script type='text/javascript' src="http://gdata.youtube.com/feeds/users/bmtpune/uploads?alt=json-in-script&callback=showMyVideos2&max-results=30"></script>
}
@main(user,"Welcome!",scripts) {
       
 			<div class="toppart">
		       <div id="slides">
		        </div>
        		<div class="mainpart">
					<div id="playerContainer" style="padding-left: 25%">
					    <object id="player"></object>
					</div>
					<div id="videos2"></div>

        		</div>

        </div>

		


    
}